<?php

namespace easydis\APSBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CommentaireGS
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="easydis\APSBundle\EntityRepository\CommentaireGSRepository")
 */
class Commentaire
{
    /**
     * @var string
     *
     * @ORM\Column(name="date", type="string", length=30)
     * @ORM\Id
     */
    private $date;

    /**
     * @var string
     *
     * @ORM\Column(name="commentaire", type="text")
     */
    private $commentaire;

	/**
     * @ORM\ManyToOne(targetEntity="easydis\APSBundle\Entity\Service")
     * @ORM\JoinColumn(nullable=false)
	 * @ORM\Id
     */
	private $service;

	/**
	  * Set service
	  *
	  * @param easydis\APSBundle\Entity\Service $service
	  */
	public function setService(\easydis\APSBundle\Entity\Service $service)
	{
		$this->service = $service;
	}
	 
	/**
	  * Get service
	  *
	  * @return easydis\APSBundle\Entity\Service 
	  */
	public function getService()
	{
		return $this->service;
	}


    /**
     * Get date
     *
     * @return string 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set commentaire
     *
     * @param string $commentaire
     * @return CommentaireGS
     */
    public function setCommentaire($commentaire)
    {
        $this->commentaire = $commentaire;
    
        return $this;
    }

    /**
     * Get commentaire
     *
     * @return string 
     */
    public function getCommentaire()
    {
        return $this->commentaire;
    }
}
